package com.sean.item;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup.LayoutParams;
import android.view.Window;

import com.sean.activity.R;

public class LoadingDialog extends Dialog {
	
	private RotateLayout mMainLayout;

	public LoadingDialog(Context context) {
		super(context);
		mMainLayout = new RotateLayout(context);
		LayoutInflater flater = this.getLayoutInflater();
		mMainLayout.addView(flater.inflate(R.layout.item_loading_dialog, null));
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.setContentView(mMainLayout, new LayoutParams(250, 90));
        this.setRotate(true);
	}
	
	public void setRotate(boolean isRotate) {
		mMainLayout.setRotate(true);
	}
	

}
